import smtplib

fromaddr = "flyfy2@gmail.com"
toaddr   = "flyfy1@gmail.com"
msg      = "This is a test email"

username = "flyfy2@gmail.com"
password = "flyfy1@gmail.com"

server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(username,password)
server.sendmail(fromaddr,toaddr,msg)
server.quit()
